go/parser.parser.allowGenerics (method)
15 uses
go/parser (current package)
parser.go#L79: func (p *parser) allowGenerics() bool { return p.mode&typeparams.DisallowParsing == 0 }
parser.go#L501: if p.tok == token.LBRACK && p.allowGenerics() {
parser.go#L571: if !p.allowGenerics() {
parser.go#L601: if !p.allowGenerics() {
parser.go#L607: if !p.allowGenerics() {
parser.go#L941: if p.allowGenerics() && acceptTParams && p.tok == token.LBRACK {
parser.go#L1014: case p.tok == token.LBRACK && p.allowGenerics():
parser.go#L1072: if p.tok == token.LBRACK && p.allowGenerics() {
parser.go#L1143: if f.Names == nil && p.allowGenerics() {
parser.go#L1149: case p.tok == token.TILDE && p.allowGenerics():
parser.go#L1154: case p.allowGenerics():
parser.go#L1222: assert(p.allowGenerics(), "parseTypeInstance while not parsing type params")
parser.go#L1258: if p.tok == token.LBRACK && p.allowGenerics() {
parser.go#L1505: if !p.allowGenerics() {
parser.go#L2605: if p.tok == token.LBRACK && p.allowGenerics() {
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)